<script src="http://<cms::var type="global" name="imgserver">/js/teacup.js" type="text/javascript"></script>
<script>

function addTagToProfile(tag) {
	//  do an XML HTTP request to add the new tag to this profile
	return submitRequest('user.addTag','','userId=<cms::var type="user" name="id">&tag='+tag);
}

function tagAdded(xmlobj) {
	tagged = document.getElementById('tagged');
	tagged.style.display = 'block';
	addtag = document.getElementById('addtag');
	addtag.style.display = 'none';
}

</script>


<div style="float: left; width: 550px;">
<cms::if type="search" name="found">
<h1 id="pagetitle grey">There are <span class="blue"><cms::var type="search" name="count"></span> people tagged <span class="blue"><cms::var type="page" name="tag"></span></h1>
<span class="small">(<a href="/browse/<cms::var type="page" name="tag">">browse them all</a> | <A href="/popular/index.pl/by?tag=<cms::var type="page" name="tag">">see the 10 top most popular people with this tag</a> | <a href="/everywhere/index.pl?of=10js&ps=tagged&tag=<cms::var type="page" name="tag">">add to your blog</a> | <a href="/everywhere/index.pl?ps=tagged&tag=<cms::var type="page" name="tag">&of=rss"><img src="http://<cms::var type="global" name="imgserver">/img/rssbutton.gif" width="15" height="15" alt="rss" border="0"> RSS</a>)</span><BR />
<cms::if type="tags" name="0" nest>
<BR />
<span class="normal">see also: <cms::fancylist over="tags"><a href="/tags/<cms::var type="tag" name="value">"><cms::var type="tag" name="value"></a> </cms::fancylist></span>
</cms::if type="tags" name="0">

<cms::if type="related" name="0" nest>
<BR /><span class="normal">frequently related tags: <cms::fancylist over="related"><a href="/tags/<cms::var type="tag" name="value">"><cms::var type="tag" name="value"></a> </cms::fancylist></span>
</cms::if type="related" name="0">

<br />

<cms::if type="girls" name="0" nest>
<h2 class="subtitle grey">...<span class="blue"><cms::var type="search" name="girls"></span> girls <span class="small">(<a href="/search.pl?tags=<cms::var type="page" name="tag">&sex=f">browse them all</a>)</span></h2>
<cms::fancylist over="girls">
        <div id="<cms::var type="profile" name="linkhandle">" class="card <cms::var type="list" name="evenodd">">
                <a href="/profiles/<cms::var type="profile" name="linkhandle">"><img src="http://<cms::var type="global" name="imgserver">/photos/<cms::var type="profile" name="userId">/100/<cms::var type="profile" name="photoId">.jpg" border="0" width="100" height="100"></a><BR />
                <span class="small"><a href="/profiles/<cms::var type="profile" name="linkhandle">"><cms::var type="profile" name="handle"></a><BR />
        <cms::if type="profile" name="country" equals="US" nest>
        <cms::var type="profile" name="city">, <cms::var type="profile" name="state">
        </cms::if type="profile" name="country">
        <cms::ifnot type="profile" name="country" equals="US" nest>
        <cms::var type="profile" name="city">, <cms::var type="profile" name="country">
        </cms::ifnot type="profile" name="country">
                </span>
        </div>
</cms::fancylist>

<BR  clear="left"/>
</cms::if type="girls" name="0">


<cms::if type="boys" name="0" nest>
<h2 class="subtitle grey">...<span class="blue"><cms::var type="search" name="boys"></span> boys <span class="small">(<a href="/search.pl?tags=<cms::var type="page" name="tag">&sex=m">browse them all</a>)</span></h2>
<cms::fancylist over="boys">
        <div id="<cms::var type="profile" name="linkhandle">" class="card <cms::var type="list" name="evenodd">">
                <a href="/profiles/<cms::var type="profile" name="linkhandle">"><img src="http://<cms::var type="global" name="imgserver">/photos/<cms::var type="profile" name="userId">/100/<cms::var type="profile" name="photoId">.jpg" border="0" width="100" height="100"></a><BR />
                <span class="small"><a href="/profiles/<cms::var type="profile" name="linkhandle">"><cms::var type="profile" name="handle"></a><BR />
        <cms::if type="profile" name="country" equals="US" nest>
        <cms::var type="profile" name="city">, <cms::var type="profile" name="state">
        </cms::if type="profile" name="country">
        <cms::ifnot type="profile" name="country" equals="US" nest>
        <cms::var type="profile" name="city">, <cms::var type="profile" name="country">
        </cms::ifnot type="profile" name="country">
                </span>
        </div>  
</cms::fancylist>
</cms::if type="boys" name="0">

</cms::if>
<cms::ifnot type="search" name="found">

<h1>Doh! We couldn't find that tag in our database.</h1>


<cms::if type="tags" name="0">
<h2>Tags that <i>sound similar</i> to <cms::var type="page" name="tag"> requested:</h2>

<cms::fancylist over="tags">
<a href="/tags/<cms::var type="tag" name="value">" class="<cms::var type="tag" name="style">"><cms::var type="tag" name="value"></a>
</cms::fancylist>
</cms::if>

</cms::ifnot>
</div>

<div style="float: right; width: 120px;">
<cms::if type="user" name="id" nest>
<div class="corners" style="width: 120px; border: #369 1px dashed;  background: #FFFF99; text-align: center;">
<div class="pad10">
<div id="addtag" <cms::if type="page" name="tagged" nest>style="display: none;"</cms::if type="page" name="tagged">><a href="#" onClick="return addTagToProfile('<cms::var type="page" name="tag">');">Add this tag to your profile! <img src="http://<cms::var type="global" name="imgserver">/img/plus.gif" align="middle" border="0" alt="Add"></a>
</div>
<div id="tagged" <cms::ifnot type="page" name="tagged" nest>style="display: none;"</cms::ifnot type="page" name="tagged">>
This tag is on your profile.
</div>
</div>
<b class="round369 tl"></b>
<b class="round369 tr"></b>
<b class="round369 bl"></b>
<b class="round369 br"></b>
</div>

<BR />
</cms::if type="user" name="id">

<div style='text-align: center;width:120px;float:right;height:70px; border: 1px dashed #666;' class="corners">
<div class="pad10" id="IID">
<a href="#" onclick="teacup.IID();return false;"><img src="http://<cms::var type="global" name="imgserver">/img/teacup.gif" border="0" alt="a nice hot cup of tea."></a>
<br/><span class='small'><a href='#' onclick='teacup.faq();return false;'>What is this teacup?</a></span>
<script>
<cms::fancylist over="newtags">teacup.addtag("<cms::var type="tag" name="value">");
</cms::fancylist>;
teacup.span = document.getElementById('IID');
teacup.preload();
</script>
</div>
<b class="round666 tl"></b>
<b class="round666 br"></b>
</div>

<BR />


<script type="text/javascript"><!--
google_ad_client = "pub-9204557371082826";
google_ad_width = 120;
google_page_url = "http://www.google.com/search?q=<cms::var type="page" name="tag">";
google_ad_height = 600;
google_ad_format = "120x600_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "A8DDA0";
google_color_bg = "EBFFED";
google_color_link = "0000CC";
google_color_url = "008000";
google_color_text = "6F6F6F";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>


<!--  <cms::var type="page" name="tag"> -->
